package com.example.demo005.controller;

import com.example.demo005.dao.BusinessDAO;
import com.example.demo005.dto.BusinessDTO;
import com.example.demo005.dto.FoodTypeDTO;
import com.example.demo005.entity.Business;
import com.example.demo005.entity.Commodity;
import com.example.demo005.service.BusinessService;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@Tag(name = "商家控制器")
@RestController
@Scope("request")
public class BusinessController extends LogicController<BusinessService, BusinessDAO, Business,Long>{
    public  BusinessController(@Autowired BusinessService service) {super(service);}
    @Operation(summary = "商家商品列表")
    @GetMapping("/business/itemList")
    public List<Commodity> getCommodityList(){
        return null;
    }

    @Operation(summary = "商家列表")
    @GetMapping("/business/list")
    public List<BusinessDTO> getBusinessList(){
        List<BusinessDTO> list = new ArrayList<>();
         getService().findAll().forEach(business->{
             
         })
    }
    
    







}
